import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import '../../res/HDColors.dart';

/// 空数据widget
class EmptyDataWidget extends StatelessWidget {
  const EmptyDataWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      height: double.infinity,
      child: Column(
        children: [
          Expanded(
              flex: 1,
              child: Container()),
          Expanded(
              flex: 4,
              child: Column(
            children: [
              Image(
                image: AssetImage("assets/images/load_empty_bg.webp"),
                width: 150,
                height: 150,
              ),
              Container(
                margin: EdgeInsets.fromLTRB(0, 10, 0, 0),
                child: const Text("暂无数据",
                    style: TextStyle(
                      fontSize: 16,
                      color: HDColors.grayHint,
                      fontWeight: FontWeight.w400,
                    )),
              )
            ],
          ))

        ],
      )
    );
  }
}
